const packageRoute = ( app, router )=> {
  for ( let key in router ) {
    if ( router.hasOwnProperty( key ) ) {
      let route = router[ key ];
      let { method, handle } = route;
      app[ method ]( key, handle);
    }
  }
};

module.exports = packageRoute;
